/**
 * zmn文章模块-文章列表
 * 文件命名格式：zmn.模块名称.表名称.功能.jas
 * @author daizc
 * @since 2018/10/18
 */
layui.define(['index', 'form', 'table', 'laypage', 'layedit', 'laydate'], function () {
    window.$ = layui.$;
    let form = layui.form;
    let layer = layui.layer;

    //监听表单提交
    form.on('submit(zmn-part-category-map-submit)', function (data) {
        zmnLayUtil.ajaxResultDTOJson(parent.layui.layer, "/part/category/map/ajax/addEdit.action", data.field, 0, function () {
            zmnLayUtil.closeThisIframe(parent,{tableSelector:"zmn-part-category-map-table"});
        });
        return false;
    });

    //监听关闭按钮
    $("#iframe-close-button").on("click", function () {
        zmnLayUtil.closeThisIframe(parent);
    })
});